/*
 * Decompiled with CFR 0.150.
 */
package com.gys.common.enums;

public enum ProStorageArea {
    P1("1", "\u5185\u670d\u836f\u54c1"),
    P2("2", "\u5916\u7528\u836f\u54c1"),
    P3("3", "\u4e2d\u836f\u996e\u7247\u533a"),
    P4("4", "\u7cbe\u88c5\u4e2d\u836f\u533a"),
    P5("5", "\u9488\u5242"),
    P6("6", "\u4e8c\u7c7b\u7cbe\u795e\u836f\u54c1"),
    P7("7", "\u542b\u9ebb\u836f\u54c1"),
    P8("8", "\u51b7\u85cf\u5546\u54c1"),
    P9("9", "\u5916\u7528\u975e\u836f"),
    P10("10", "\u533b\u7597\u5668\u68b0"),
    P11("11", "\u98df\u54c1"),
    P12("12", "\u4fdd\u5065\u98df\u54c1"),
    P13("13", "\u4fdd\u5065\u98df\u54c1");

    private String code;
    private String name;

    private ProStorageArea(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(String code) {
        for (ProStorageArea form : ProStorageArea.values()) {
            if (!form.getCode().equals(code)) continue;
            return form.name;
        }
        return null;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

